.toast {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 50; // Overlay repository/blob contents
    padding: 1rem;
    display: flex;
    align-items: start;
    border-radius: 0.25rem;
    background-color: $color-light-bg-2;
    color: $color-light-text-1;

    &__logo {
        flex: 0 0 auto;
        width: 2rem;
        height: 2rem;

        .icon,
        .logo-icon {
            width: 2rem;
            height: 2rem;
        }

        .icon {
            fill: currentColor;
        }
    }

    &__contents {
        flex: 1 1 auto;
        margin: 0 1rem;
        display: flex;
        flex-direction: column;
        max-width: 400px;
    }

    &__contents-title {
        margin: 0 0 0.5rem 0;
    }

    &__contents-cta {
        margin-top: 0.5rem;
    }

    &__rating-btn {
        width: 2rem;
        padding: 0.5rem 0;
    }

    &__rating-btn:not(:first-of-type) {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    &__rating-btn:not(:last-of-type) {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    &__close-button {
        flex: 0 0 auto;
    }
}

.theme-light {
    .toast {
        border: 1px solid $color-light-border;

        &__close-button {
            &:hover {
                color: $color-light-bg-6;
            }
        }
    }
}
